
--------------------------------------------
EBHGE V 0.2.0
Haaf's Game Engine 1.8 for Emergence Basic
--------------------------------------------


				* WELCOME *

Hi, this is the second version of ebhge. 
I have corrected several bugs in the previous version and optimized the helpers, the dll changed from 126 to 75 KB. 
This version is much more stable than previous one, so you should consider delete the first version and use this one ;).

Remember, to run the tutorials, open Emergence Basic and choose "Tools - Create Import Library" and select the ebhge.dll. Then open the tutorials and make them.


-------------------------------------------------------------------------------------------
				* THE HELPERS *

All the helpers have 2 special functions, one for creating instances and other for deleting.
You must manually delete every instance created. Always remember to delete the instances. 

If you create an instance as global, you should delete the instance when exit the program.
If you create an instance as local to a subroutine, you should delete the instance in the same subroutine.

-------------------------------------------------------------------------------------------
				* COLOR MANAGEMENT *

The color format in Emergence Basic is:

		uint colorEB=0x00BBGGRR (blue - green - red)

This is obtained by colorEB=RGB(...)
Each component ranges between 0 and 255 (0x00 to 0xFF in hex)

HGE uses the same interval, but the format is different:

		uint colorhge=0xAARRGGBB (alpha - red - green - blue)

EBHGE uses the HGE format in all the functions, but you can use the following functions to convert between the two formats:

		colorEB=ARGBtoBGR(colorhge, INT alpha BYREF)
		colorhge=BGRtoARGB(colorEB, INT alpha)

I put these 2 functions in the tutorial 1. Copy to wherever you need them.

***
HAVE FUN!!!
faseceroo@gmail.com



